//  @ Project : GagalPanen
//  @ File Name : seedconstants.cpp
//  @ Date : 3/9/2011
//  @ Author : Irvan
//
//


#include "seedconstants.hpp"

#include <string>
#include <assert.h>

const int SeedConstants::kSeedCount = 12;

const std::string SeedConstants::kSeedsNames[] = {
  "IF2030",
  "IF3099",
  "IF3038",
  "IF2032",
  "banana",
  "EL2010",
  "RILA",
  "Kutukan Ibob",
  "IP",
  "Lap",
  "100 Seed",
  "1000 Seed"
  };
const int SeedConstants::kSeedsBuyPrices[] = {
  100,
  300,
  300,
  200,
  50,
  500,
  175,
  0,
  500,
  500,
  100,
  1000};
const int SeedConstants::kSeedsSellPrices[] = {
  50,
  150,
  150,
  100,
  25,
  0,
  85,
  -500,
  250,
  250,
  100,
  1000};
const int SeedConstants::kPlantsIds[] = {
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  10,
  11};
const std::string SeedConstants::kSeedsDescriptions[] = {
  "Kya",
  "Uhui",
  "Mami...",
  "Gampang Mati",
  "Mau yang normal?",
  "Bagi para pejantan",
  "RILA MANDALA!",
  "Mengandung kutukan Ibob",
  "Bibit yang mengandung arwah IP",
  "Cuman lap biasa...",
  "Berharga 100",
  "Berhara 1000"};

std::string SeedConstants::getSeedName(int seed_id) {
  assert(seed_id >= 0 && seed_id < SeedConstants::getSeedsCount());
  return kSeedsNames[seed_id];
}

int SeedConstants::getPlantIdFromSeed(int seed_id) {
  assert(seed_id >= 0 && seed_id < SeedConstants::getSeedsCount());
  return kPlantsIds[seed_id];
}

int SeedConstants::getSeedBuyPrice(int seed_id) {
  assert(seed_id >= 0 && seed_id < SeedConstants::getSeedsCount());
  return kSeedsBuyPrices[seed_id];
}

int SeedConstants::getSeedSellPrice(int seed_id) {
  assert(seed_id >= 0 && seed_id < SeedConstants::getSeedsCount());
  return kSeedsSellPrices[seed_id];
}

int SeedConstants::getSeedsCount() {
  return kSeedCount;
}

std::string SeedConstants::getSeedDescription(int seed_id) {
  return kSeedsDescriptions[seed_id];
}

